﻿using BLL;
using System;
using System.Windows.Forms;


namespace Student
{
    public partial class Mainform : Form
    {
        public Mainform()
        {
            InitializeComponent();
        }

        private void Mainform_Load(object sender, EventArgs e)
        {
            this.Visible = false;
            login login = new login();
            if (login.ShowDialog() == DialogResult.OK)
                this.Visible = true;
            else
                Close();
        }
        private void Student_Load(object sender, EventArgs e)
        {

        }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            B_Student stu = new B_Student();
            GridView1.DataSource = stu.GetList();
        }
    }
}
